﻿using ChatServer.Models;

namespace ChatServer.Servers
{
    public interface IClient
    {
        Task ParticipantConnected(string name);
        Task ParticipantDisconnected(string name);
        Task ParticipantLogin(User client);
        Task ParticipantLogout(string name);
        Task BroadcastTextMessage(string sender, string message);
        Task BroadcastImageMessage(string sender, byte[] img);
        Task UniCastTextMessage(string sender, string message);
        Task UniCastImageMessage(string sender, byte[] img);
        Task ParticipantTyping(string sender);
    }
}
